package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 余额记录对象 app_balance_record
 * 
 * @author ruoyi
 * @date 2024-08-08
 */
public class AppBalanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 操作（其他1、其他2、充值、提现、提现失败退回） */
    @Excel(name = "操作", readConverterExp = "其=他1、其他2、充值、提现、提现失败退回")
    private String handle;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal amount;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal balance;

    /** 游戏类型，0：f3，1：x3，2：b28 */
    @Excel(name = "游戏类型，0：f3，1：x3，2：b28")
    private Integer gameType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setHandle(String handle) 
    {
        this.handle = handle;
    }

    public String getHandle() 
    {
        return handle;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }
    public void setGameType(Integer gameType) 
    {
        this.gameType = gameType;
    }

    public Integer getGameType() 
    {
        return gameType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("userId", getUserId())
            .append("handle", getHandle())
            .append("amount", getAmount())
            .append("balance", getBalance())
            .append("gameType", getGameType())
            .toString();
    }
}
